<template>
	<view>
		<view style="padding-left: 30rpx; padding-right: 30rpx">
			<view style="padding-top: 20rpx;">
				<u-search placeholder="同学/动态/"  @search="search" @custom="search" v-model="s_keyword"></u-search>
				<u-modal v-model="sm_show" :content="sm_content"></u-modal>
			</view>
			<view style="padding-top: 36rpx;">
				搜索内容为：“<text>{{scontent}}</text>”
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				s_keyword: '',
				sm_show: false,
				sm_content: '东临碣石，以观沧海',
				scontent: '搜索内容'
			}
		},
		onLoad: function (option){
			this.scontent = option.con
		},
		methods: {
			search (value) {
				uni.navigateTo({
					url:'search?con=' + value,
					success: this.$refs.uTips.show({
						title: 'search:' + value + ' navigate跳转成功！',
						type: 'success',
						duration: '3000'
					}),
				})
			}
		}
	}
</script>

<style>

</style>
